package com.study.talk;

import com.study.talk.module.netty.NettyServer;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@MapperScan(basePackages = "com.study.talk.module.mapper")
public class TalkApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(TalkApplication.class, args);
        NettyServer server = context.getBean(NettyServer.class);
        server.start();
    }


}
